﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Header.Master" AutoEventWireup="true" CodeBehind="Profile.aspx.cs" Inherits="geekmeet.Profile" %>
<asp:Content ID="head" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
    <script src="../Scripts/geekmeet.js" type="text/javascript"></script>
    </asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div id="mainWrapper">
    <asp:HiddenField ID="hiddenID" runat="server" />
    <div id="profileTopSection">
        

       


 </div>
  <div id="profileWrapper">
    <div id="profileDataWrapper">
                <div id="profileMenu">
                        <asp:Menu ID="mnuProfileLinks" runat="server" Orientation="Horizontal">
                            <Items>
                                <asp:MenuItem NavigateUrl="Wall.aspx" Text="Gästbok" Value="Gästbok">
                                </asp:MenuItem>
                                <asp:MenuItem NavigateUrl="Friends.aspx?user=" Text="Vänner" Value="Vänner">
                                </asp:MenuItem>
                            </Items>
                        </asp:Menu>
              </div>


      
        
            <div id="profilePictureFrame">
                    <asp:Image ID="imgProfileImage" runat="server" Height="180px" Width="150px" />
             </div>
                <div id="profileDataInner">
                  <asp:Label ID="lblUserName" runat="server" Text="Label" CssClass="pageHeader"></asp:Label>
                    <asp:Image ID="imgGender" runat="server" /><br />

                    <asp:Label ID="lblName" runat="server" Text="" CssClass="profileData"></asp:Label>
                    <br />
                    <asp:Label ID="lblAge" runat="server" Text="" CssClass="profileData"></asp:Label>
                          
                      <asp:Label ID="lblLocation" runat="server" Text="" CssClass="profileData"></asp:Label>
                    <br />
                    <h2 class="profileAboutMeHeader"><asp:Label ID="lblProfileTextHeader" runat="server" Text="Om mig"></asp:Label></h2>
                    <span class="profileData"><asp:Literal ID="litProfileText" runat="server"></asp:Literal></span>

                     </div>

            <div id="friendWrapper">
                     <asp:MultiView ID="multiviewFriendStatus" runat="server">
            
                    <asp:View ID="viewAddFriend" runat="server">

                          <a href= "#" onclick="showAddFriendContainer()">Lägg till som vän</a>
                        <br />
                        <div id="addFriendContainer">
                        <asp:DropDownList ID="ddlFriendCategory" runat="server" 
                            AppendDataBoundItems="True" DataSourceID="FriendsCategoryData" 
                            DataTextField="CategoryName" DataValueField="CategoryID" Width="140px">
                            <asp:ListItem>-- Välj kategori --</asp:ListItem>
                        </asp:DropDownList><br />
                        <asp:Button ID="btnSendFriendRequest" runat="server" Text="Skicka förfrågan" 
                                onclick="btnSendFriendRequest_Click" />
                        </div>
                         <asp:EntityDataSource ID="FriendsCategoryData" runat="server" 
                            ConnectionString="name=GeekMeetEntities" 
                            DefaultContainerName="GeekMeetEntities" EnableFlattening="False" 
                            EntitySetName="FriendCategory" EntityTypeFilter="FriendCategory" 
                            Select="it.[CategoryName], it.[CategoryID]">
                        </asp:EntityDataSource>
                    </asp:View>
                    <asp:View ID="viewRequestToMe" runat="server">
                        Du har fått en vänförfrågan.
                    </asp:View>
                    <asp:View ID="viewAcceptedFriend" runat="server">
                       <div class="friendStatusWrapper">Vänner</div>
                    </asp:View>
                    <asp:View ID="viewDeniedFriend" runat="server">
                        Du har avslagit vänförfrågan 
                    </asp:View>
                    <asp:View ID="viewRequestFromMe" runat="server">
                        Du har skickat en vänförfrågan.
                     </asp:View>
                </asp:MultiView>
        </div>
        <asp:MultiView ID="multiviewNerdometer" runat="server" Visible="True">
        
        <asp:View ID="viewNerdometer" runat="server">
            <div id="nerdOMeterContainer">
                    <img src="../images/site/nerdometer_logo.png" />
                        <div id="progressbar"></div>
                        <br />
               
                        <asp:Label ID="lblNerdometerMessage" runat="server" CssClass="profileData"></asp:Label>
               

            </div>
            </asp:View>
            <asp:View ID="ViewNerdometerInvisible" runat="server">
            </asp:View>
            </asp:MultiView>
 </div>           
          

    



        <div id="profileInterests">
            <asp:Label ID="Label2" runat="server" Text="Intressen" CssClass="pageSubHeader"></asp:Label>
            <br />
            <asp:Repeater ID="interestRepeater" runat="server">
            
                <ItemTemplate>
                    <div class="interestItem"><%#Eval("InterestName") %></div>
                </ItemTemplate>
            
            </asp:Repeater>
            </div>
        
        
        
    
     <div id="profileTextContainer">
         <asp:Literal ID="ProfileText" runat="server"></asp:Literal>
         <br />
       </div>
    
    </div>
    </div>
    </asp:Content>